/**
 * 
 */
package de.cbf.cam.dsa.dataprovider.weapons;

import java.util.ArrayList;
import java.util.List;

import de.cbf.cam.dsa.model.entities.WeaponStyle;
import de.cbf.cam.dsa.model.entities.constants.WeaponSpecialConstants;
import de.cbf.cam.dsa.model.entities.constants.WeaponStyleTemplates;
import de.cbf.cam.dsa.model.entities.weapon.WeaponMelee;

/**
 * @author Nebelritter
 *
 */
public class ProviderSpears {
	
private static ProviderSpears instance = new ProviderSpears();
	
	public static ProviderSpears getInstance(){
		return instance;
	}
	
	public List<WeaponMelee> provideSpears(){
		List<WeaponMelee> resultList = new ArrayList<WeaponMelee>();
		resultList.add(provideSpeer());
		return resultList;
	}
	
	private WeaponMelee provideSpeer(){
		WeaponMelee weapon =new WeaponMelee();
		weapon.setWeaponType("Speer");
		weapon.setTpDiceNumber(1);
		weapon.setTpDiceSides(6);
		weapon.setTpBonus(5);		
		weapon.setKKTreshold(12);
		weapon.setKKStep(4);
		weapon.setWeight(80);
		weapon.setWeapLength(190);
		weapon.setBf(5);
		weapon.setIniMod(-1);
		weapon.setPrice(30);
		weapon.setWmAT(0);
		weapon.setWmPA(-2);	
		weapon.setSpecialStates(WeaponSpecialConstants.STATE_twoHand);
		weapon.setDkBits(WeaponMelee.DKN);
		weapon.setWear("");
		//weapon styles
		WeaponStyle style = WeaponStyleTemplates.provideSchwerter();
		style.setName("Speer");
		
		weapon.addStyle(style);
		return weapon;
	}
}
